home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000407_news@columbia.edu _Sat Apr 13 10:01:20 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id KAA06305 for <kermit.misc@watsun>; Sat, 13 Apr 1996 10:01:19 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id KAA25583 for kermit.misc@watsun; Sat, 13 Apr 1996 10:01:17 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: How to do this in Ckermit?
  8. Date: 13 Apr 1996 14:01:06 GMT
  9. Organization: Columbia University
  10. Lines: 28
  11. Message-ID: <4koc32$ov2@apakabar.cc.columbia.edu>
  12. References: <4kktp1$bvn@cyberE.creative.net>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <4kktp1$bvn@cyberE.creative.net>,  <bmorgan@creative.net> wrote:
  16. : I have a routine in ProComm Windows Aspect which I would like to port to
  17. : CKermit (OS/2, if it matters), so that I don't have to run Windows. The
  18. : answer is probably contained in "Using C-Kermit", but I can't find it.
  19. :
  20. Thank you for looking :-)  Actually, it is in there, in the INPUT command
  21. discussion, on page 279, bottom half.
  22.  
  23. : The part I can't figure is how to control the input buffer on a
  24. : character by character basis, which looks like this in PW Aspect:
  25. : Set Aspect $RXDATA ON
  26. : integer A
  27. : comreadc A  ; Read a charcter from the comm port
  28. : ;Now I can do whatever I like with "A"
  29. Use the INPUT command with a blank target:
  30.  
  31.   INPUT 10
  32.   IF FAIL ...
  33.  
  34. This tells it to read one character -- any character.  If it succeeds,
  35. i.e. if a character arrives within the timeout period (10 seconds in this
  36. example), it is available in the \v(inchar) variable.
  37.  
  38. There, now you can switch to OS/2.
  39.  
  40. - Frank